package com.originit.product.server

import com.originit.product.server.mq.StreamInterface
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.springframework.cloud.client.SpringCloudApplication
import org.springframework.cloud.client.discovery.EnableDiscoveryClient
import org.springframework.cloud.netflix.hystrix.EnableHystrix
import org.springframework.cloud.stream.annotation.EnableBinding
import org.springframework.transaction.annotation.EnableTransactionManagement

@SpringCloudApplication
@EnableTransactionManagement
@EnableBinding(StreamInterface::class)
class ProductApplication

fun main(args: Array<String>) {
    runApplication<ProductApplication>(*args)
}
